dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow titles with falsy title text in suggestions
[lhc/web/wiklou.git]
/
includes
/
search
/
SearchSuggestion.php
diff --git
a/includes/search/SearchSuggestion.php
b/includes/search/SearchSuggestion.php
index
cd9062b
..
80a437b
100644
(file)
--- a/
includes/search/SearchSuggestion.php
+++ b/
includes/search/SearchSuggestion.php
@@
-84,7
+84,7
@@
class SearchSuggestion {
*/
public function setText( $text, $setTitle = true ) {
$this->text = $text;
- if ( $setTitle && $text ) {
+ if ( $setTitle && $text
!== '' && $text !== null
) {
$this->setSuggestedTitle( Title::makeTitle( 0, $text ) );
}
}